
$(function() {

    $.ajax({
        url: "https://newapp.icandrive.cn/api/manage_student.php",
        type: 'post',
        dataType: 'json',
        data: {
            token: token
        },
        success: function(data) {

                if(data.status == 200) {
                $(data.dataing).each(function() {
                    $('.list').append('<li class="student_evaluate"><div class="student_head_img"><img src="' + this.photo + '" alt="" ></div><div class="student_infomaition"><div>' + this.user_name + '</div><div class="student_phone_warp">' + this.phone + '<a href="tel:' + this.phone + '" class="call_student_phone"><img src="phone_call.png" alt=""></a></div><div><span>评价：</span><span>暂未评价</span></div></div></li>');

                })
            }
        },
        error: function() {}

    })

})
/*地址检测*/
 $('.address').click(function() {
        window.location.href = '../distence/distence.html';
    });
 var token = localStorage.phone;


var menu_head = $(".menu_head");
var menu_body = $(".menu_body");

menu_head.click(function() {
    menu_body.toggle()

});

/*监听手机返回键*/
document.addEventListener("plusready", function() {
    // 注册返回按键事件
    plus.key.addEventListener('backbutton', function() {
        window.history.back();
    }, false);
    //此处false代表不退出页面，如果为true回退到上一个一面
});
